how to use javascriptexecutor for loop in selenium c#

54

how to use javascriptexecutor for loop in selenium c# -

String script3 = "return document.getElementsByTagName('g')[" + f9 + "].textContent";
n = (String) ((JavascriptExecutor) driver).executeScript(script3, hiddenDiv); 

Comments

Submit
0 Comments